package day6.zuoye;

public class Test06 {
    public static void main(String[] args) {
        //10000内的质数
        int j;
        int count=0;
        for (int i=2;i<=10000;i++){
            j=2;//c
            while (i%j!=0){
                j++;
                if (j==i){
                    System.out.println(i);
                    count++;
                }
            }
        }
        System.out.println("10000内的质数有"+(count+1)+"个");
    }

}

